package com.fzy.auth.entity;

import com.fzy.core.entity.EntityStatus;
import com.fzy.core.entity.UniqueName;

/**
 * @hibernate.mapping default-lazy="false"
 * @hibernate.meta attribute="class-description" value="资源"
 * @hibernate.class table="fz_res"
 */
public class Resource implements UniqueName, EntityStatus {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5983704216689766640L;
	Long id;
	String name;
	String url;
	String status;

	/**
     * @hibernate.id generator-class="sequence" column="id" type="long" unsaved-value="null"
     * @hibernate.generator-param  name="sequence" value="s_fz_res"
     * @hibernate.meta attribute="field-description" value="ID(s_fz_res)"
     */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
    /**
     * @hibernate.property column="name" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="名称"
     */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
    /**
     * @hibernate.property column="url" type="string" length="255" not-null="true"
     * @hibernate.meta attribute="field-description" value="URL"
     */
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
    /**
     * @hibernate.property column="status" type="string" length="1" not-null="true"
     * @hibernate.meta attribute="field-description" value="记录状态(0,无效,1,有效)"
     */
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}

}
